import json
# import sys
# sys.setrecursionlimit(100000)
with open("part.json", "r", encoding="utf-8") as f:
    data = json.load(f)

#纳排系统 laboratory_test_record_strategy.test_report.composite_item.item_name_cn
def dict_method(x, xin):
    if xin == len(search_path)-1:
         result.append(x[search_path[xin]])
    else:
        return list_or_dict(x[search_path[xin]], xin+1)

def list_method(x, xin):
    for i in x:
        list_or_dict(i, xin)

def list_or_dict(x, xin):

    if isinstance(x, dict):
        dict_method(x,xin)
    else:
        list_method(x, xin)

def judge():



search_path = input("search_path:").split(".")
xin = 0
result = []
table = data[search_path[xin]]#大表
list_or_dict(table, xin+1)



